/*
 * vws_http_response.h
 *
 *  Created on: Sep 20, 2013
 *      Author: vscen
 */

#ifndef VWS_HTTP_RESPONSE_H_
#define VWS_HTTP_RESPONSE_H_

#include "vws_config.h"
#include "vws_http_error.h"
#include "vws_http_time.h"

namespace vws {
class vws_http_response: private vws_http_time {
public:
	bool getRetryAfterField(int nSecond, char* pszBuffer, size_t nSize);
	bool getServerField(char* pszBuffer, size_t nSize);
	bool getAgeField(char * seconds, char* pszBuffer, size_t nSize);
	bool getUserAgentField(char* pszBuffer, size_t nSize);
	bool getDateField(char* pszBuffer, size_t nSize);
	bool getEntityTag(char* data, char* pszBuffer, size_t nSize);
	bool getFormMailField(char* e_mail, char* pszBuffer, size_t nSize);
	bool getContentEncodingField(int nIndex, char* pszBuffer, size_t nSize);
	bool getContentLengthField(size_t len, char* pszBuffer, size_t nSize);
	bool getContentMd5(unsigned char * src, size_t length, char* pszBuffer,
			size_t nSize);
	bool getExpiresField(char* pszBuffer, size_t nSize);
	bool getConnectField(int nIndex, char* pszBuffer, size_t nSize);
	bool getAcceptRangesField(int nIndex, char* pszBuffer, size_t nSize);
	bool getAllowMethod(char* pszBuffer, size_t nSize);
};
}

#endif /* VWS_HTTP_RESPONSE_H_ */
